/*
 * Copyright 2017 Baiyyy
 * @(#)CctsWdjlb.java
 */

package com.byyy.ccts.modules.cc.entity.ccts;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import com.byyy.ccts.core.common.entity.AbstractEntity;
import com.byyy.ccts.core.security.shiro.authz.annotation.DataPermission;
import com.byyy.ccts.modules.sys.entity.User;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by DELL on 2018-3-28.
 */
@TableName("T_S_DEVICE_WARNING_LOG")
public class TSDeviceWarningLog extends AbstractEntity<String> {

    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    @TableField(value = "DEVICE_ID")
    private String deviceId;

    @TableField(value = "TYPE")
    private String type;

    @TableField(value = "TITLE")
    private String title;

    @TableField(value = "CONTENT")
    private String content;

    @TableField("COLLECT_TIME")
    private Timestamp collectTime;

    /** 创建者 */
    @TableField(value = "create_by", el = "createBy.id", fill = FieldFill.INSERT)
    private User createBy;
    /** 创建时间 */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private Timestamp createDate;

    @TableField(exist = false)
    private String sbNo;

    @DataPermission
    @TableField(exist = false)
    private String cangku;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public User getCreateBy() {
        return createBy;
    }

    public void setCreateBy(User createBy) {
        this.createBy = createBy;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Timestamp collectTime) {
        this.collectTime = collectTime;
    }

    public String getSbNo() {
        return sbNo;
    }

    public void setSbNo(String sbNo) {
        this.sbNo = sbNo;
    }

    public String getCangku() {
        return cangku;
    }

    public void setCangku(String cangku) {
        this.cangku = cangku;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }
}
